import { type PluginModule } from '~/types/plugins'
export default function installPlugin(app: PluginModule) {
  Object.values(
    import.meta.glob<{ install: (app: PluginModule) => void }>(
      ['./**/*.ts', '!./i18n.ts', '!./index.ts'],
      { eager: true }
    )
  ).forEach((i) => i.install?.(app))
}
